package com.zj.cman.modules.articles.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Set;

@Data
@TableName("articles")
public class Article {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String title;
    private String slug;
    private String content;
    private String summary;

    private Long authorId;

    private Set<Long> categoryIds; // 存储分类ID
    private Set<Long> tagIds;      // 存储标签ID

    // Getters and Setters
}
